<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户详情页面</title>
    <script src="/js/jquery.js"></script>

</head>
<body>

<form action="/updatee">
    <input type="hidden"  value="${ulist.userid}" name="userid">
    <div class="form-group">
        <label for="startDate" class="col-sm-2 control-label">用户姓名</label>
        <div class="col-sm-10">
            <input  type="text" class="form-control" value="${ulist.username}" name="username"/>
        </div>
    </div>
    <div class="form-group">
        <label for="startDate" class="col-sm-2 control-label">用户真实姓名</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" value="${ulist.realname}" name="realname"/>
        </div>
    </div>

    <div class="form-group">
        <tr>
            <td>所属部门<span style="color:red">*</span>：</td>
            <td>
                <select name="deptid"  id="dept">
                    <option value="-1">请选择部门</option>
                <#list dlist as d>
                        <option value="${d.deptid}" <#if d.deptid==ulist.deptid>selected</#if>>${d.deptname}</option>

                </#list>
                </select>
            </td>
        </tr>
        <tr>
            <td>所属职位<span style="color:red">*</span>：</td>
            <td>
                <select id="major" name="majorid">
                  <#--  <option value="-1">请选择</option>-->
                    <#list mlist as m>
                    <option value="${m.majorid}" <#if m.majorid==ulist.majorid>selected</#if>>${m.majorname}</option>
                    </#list>
                </select>
            </td>

        </tr>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit">修改</button>
            <#--<button type="button" class="btn btn-default">修改</button>-->
            <a href="/list">返回</a>
            <#--<button type="button" onclick="history.back();" class="btn btn-default">返回</button>-->
        </div>
    </div>
</form>
</body>
</html>